package engine.map.staticobjects;

import java.awt.Color;
import engine.display.Display;
import engine.map.Tile;

/**
 * @author Kyle_Solo
 */
public class Wall extends Tile {
	private Color background = Color.DARK_GRAY;
	private final String character = "#";
	private final Color color = Color.LIGHT_GRAY;

	@Override
	public Color getColor() {
		return background;
	}

	@Override
	public boolean isObstruction() {
		return true;
	}

	@Override
	public boolean isPassable() {
		return false;
	}

	@Override
	public void render(Display display, int x, int y) {
		display.drawBackground(x, y, background);
		display.drawCharacter(x, y, character, color);
	}

	@Override
	public void renderShaded(Display display, int x, int y) {
		display.drawBackground(x, y, background.darker());
		display.drawCharacter(x, y, character, color.darker());
	}

	@Override
	public void setColor(Color color) {
		background = color;
	}

	@Override
	public String toString() {
		return "#";
	}
}